package com.greenleaf.serviceImpl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.greenleaf.dao.SlideShowDao;
import com.greenleaf.entity.SearchCon;
import com.greenleaf.entity.SlideShow;
import com.greenleaf.service.SlideShowService;
@Service("slideShowService")
public class SlideShowServiceImpl implements SlideShowService {
	@Resource
	private SlideShowDao slideShowDao; 
	@Override
	public List<SlideShow> getAllSlideShow(SearchCon searchCon) {
		return slideShowDao.getAllSlideShow(searchCon);
	}

	@Override
	public int getTotalSlideShow(SearchCon searchCon) {
		return slideShowDao.getTotalSlideShow(searchCon);
	}

	@Override
	public int addSlideShow(SlideShow slideShow) {
		return slideShowDao.addSlideShow(slideShow);
	}

	@Override
	public int updateSlideShow(SlideShow slideShow) {
		return slideShowDao.updateSlideShow(slideShow);
	}

	@Override
	public int delSlideShow(Integer sdId) {
		return slideShowDao.delSlideShow(sdId);
	}

	@Override
	public int delSlideShows(List<Integer> list) {
		return slideShowDao.delSlideShows(list);
	}

}
